package com.travelgroup.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.baomidou.mybatisplus.annotation.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

@Getter
public enum UserGroupStatus implements IEnum<Integer> {
    WAITING(0, "待支付"),
    NORMAL(1, "正常"),
    CANCEL(2, "取消"),
    FINISH(3, "已结束");

    @EnumValue
    private final Integer value;
    @JsonValue
    private final String type;

    UserGroupStatus(Integer value, String type) {
        this.type = type;
        this.value = value;
    }
}
